<% #endcoding:utf-8%>

<div class="name-card">
  <%if session[:user_id].nil?%>
      <h3 class="name"><%=link_to "登陆",login_path%>后可见</h3>
  <%else%>
  <%if @info%>
  <h3 class="name"><%=@info.name%></h3>
  <p class="phone">手机 ： <%=@info.phone%></p>
  <p class="good-at">地址 ： <%=@info.address%></p>
  <%end%>
  <%end%>
</div>